package asava.trees;

import asava.utils.Operator;

/**
 * @author Tim Richter
 */
public final class PrefixOp extends UnaryOp {
    public PrefixOp(final Tree expr,
                    final Operator operator) {
        super(expr, operator);
    }

    @Override
    public int kind() {
        return TreeKind.PREFIX;
    }

    @Override
    public void accept(final TreeVisitor visitor) {
        visitor.visit(this);
    }
}
